package com.qk.common.exception;


import com.qk.common.enums.Code;

public class CommonException extends BaseException{
    public CommonException(Code code) {
        super(code.getMsg());
    }


    //抛出通用异常
    public static void throwException(Code code) {
        throw new CommonException(code);
    }
}
